/* 支付页面整体样式 */
.payment-page {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.payment-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.payment-header h2 {
    font-size: 24px;
    color: #333;
    font-weight: 500;
}

/* 订单信息区块 */
.order-info-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 6px;
}

.section-header {
    margin-bottom: 15px;
}

.section-header h3 {
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

.order-info {
    display: flex;
    flex-wrap: wrap;
}

.info-item {
    width: 50%;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.info-item .label {
    width: 100px;
    color: #666;
    font-size: 14px;
}

.info-item .value {
    flex: 1;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.info-item .price {
    color: #ff6700;
    font-size: 18px;
    font-weight: bold;
}

.info-item .status {
    color: #1E9FFF;
    font-weight: 500;
}

.info-item .countdown {
    color: #ff6700;
    font-size: 16px;
    font-weight: bold;
}

/* 支付方式区块 */
.payment-method-section {
    margin-bottom: 30px;
}

/* 支付图标样式 */
.payment-icon {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.alipay-icon {
    background-color: #00a0e9;
    border-radius: 8px;
    position: relative;
}

.alipay-icon:before {
    content: "支";
    color: white;
    font-size: 20px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.wechat-icon {
    background-color: #07c160;
    border-radius: 8px;
    position: relative;
}

.wechat-icon:before {
    content: "微";
    color: white;
    font-size: 20px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.bank-icon {
    background-color: #ff6700;
    border-radius: 8px;
    position: relative;
}

.bank-icon:before {
    content: "银";
    color: white;
    font-size: 20px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 支付方式样式 */
.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    width: 200px;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: #ff6700;
    box-shadow: 0 0 10px rgba(255, 103, 0, 0.1);
}

.payment-option.active {
    border-color: #ff6700;
    background-color: #fff8f6;
}

.payment-option span {
    font-size: 16px;
    color: #333;
}

.payment-option .layui-icon-ok {
    position: absolute;
    right: 15px;
    color: #ff6700;
    font-size: 18px;
    display: none;
}

.payment-option.active .layui-icon-ok {
    display: block;
}

.payment-option:hover {
    border-color: #1E9FFF;
    background-color: #f0f9ff;
}

.payment-option.active {
    border-color: #1E9FFF;
    background-color: #f0f9ff;
}

.payment-option img {
    width: 36px;
    height: 36px;
    margin-right: 10px;
}

.payment-option span {
    font-size: 14px;
    color: #333;
}

.payment-option i {
    position: absolute;
    right: 10px;
    color: #1E9FFF;
    display: none;
}

.payment-option.active i {
    display: block;
}

/* 支付二维码区块 */
.payment-qrcode {
    margin: 30px auto;
    max-width: 300px;
    text-align: center;
    display: none;
}

.qrcode-container {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.qrcode-container img {
    width: 200px;
    height: 200px;
    margin-bottom: 15px;
}

.qrcode-container p {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.qrcode-container p span {
    color: #1E9FFF;
    font-weight: 500;
}

.qrcode-tip {
    margin-top: 10px;
    color: #999;
    font-size: 12px;
}

/* 订单商品区块 */
.order-items-section {
    margin-bottom: 30px;
}

.order-items {
    border: 1px solid #eee;
    border-radius: 6px;
}

.order-item {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.item-info {
    flex: 1;
}

.item-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.item-price {
    font-size: 14px;
    color: #999;
}

.item-quantity {
    font-size: 14px;
    color: #999;
    margin-left: 15px;
}

.item-subtotal {
    font-size: 16px;
    color: #ff6700;
    font-weight: 500;
    margin-left: auto;
    padding-left: 20px;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

.cancel-btn,
.pay-btn {
    padding: 10px 30px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    margin: 0 10px;
}

.cancel-btn {
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.cancel-btn:hover {
    background-color: #e0e0e0;
}

.pay-btn {
    background-color: #ff6700;
    color: #fff;
    border: 1px solid #ff6700;
}

.pay-btn:hover {
    background-color: #f25807;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .payment-page {
        padding: 15px;
    }
    
    .info-item {
        width: 100%;
    }
    
    .payment-option {
        width: 100%;
    }
    
    .order-item {
        flex-direction: column;
    }
    
    .order-item img {
        margin-bottom: 10px;
    }
    
    .item-subtotal {
        margin-left: 0;
        margin-top: 10px;
        padding-left: 0;
    }
}

/* 订单商品样式 */
.order-items-section {
    margin-top: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.order-items-header {
    display: grid;
    grid-template-columns: 100px 2fr 1fr 1fr 1fr;
    padding: 15px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
    font-weight: bold;
}

.order-items-list {
    max-height: 400px;
    overflow-y: auto;
}

.order-item {
    display: grid;
    grid-template-columns: 100px 2fr 1fr 1fr 1fr;
    padding: 15px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.order-item:last-child {
    border-bottom: none;
}

.item-image img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.item-name {
    padding: 0 10px;
}

.item-name p {
    margin: 0;
    line-height: 1.4;
}

.item-author {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.item-price, .item-quantity, .item-total {
    text-align: center;
}

.item-total {
    font-weight: bold;
    color: #ff6700;
}

.order-items-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}

.order-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    min-width: 200px;
}

.summary-item:last-child {
    font-size: 18px;
    font-weight: bold;
    color: #ff6700;
}

.empty-items {
    padding: 30px;
    text-align: center;
    color: #999;
}